package tool

import "MoSkeleton/framework/core/dto/request"

type GenBizPageReq struct {
	request.PageInfo
	request.BaseRequest
	Title  string `json:"title" form:"title"`
	Status string `json:"status" form:"status"`
}

type GenBizAddReq struct {
	ClassifyId          uint64 `json:"classifyId,string" form:"classifyId,string" binding:"required"`
	DatasourceId        uint64 `json:"datasourceId,string" form:"datasourceId,string" binding:"required"`
	Title               string `json:"title" form:"title"`
	FunctionAuthor      string `json:"functionAuthor"`
	IsIgnoreTablePrefix string `json:"isIgnoreTablePrefix"`
	TableSuffix         string `json:"tableSuffix"`
	ListOrder           int32  `json:"listOrder"`
	Status              string `json:"status"`
	Remark              string `json:"remark"`
	CreatedBy           string `json:"createdBy"`
	UpdatedBy           string `json:"updatedBy"`
}

type GenBizUpdateReq struct {
	request.IDRequest
	ClassifyId          uint64 `json:"classifyId,string" form:"classifyId,string" binding:"required"`
	DatasourceId        uint64 `json:"datasourceId,string" form:"datasourceId,string" binding:"required"`
	Title               string `json:"title" form:"title"`
	FunctionAuthor      string `json:"functionAuthor"`
	IsIgnoreTablePrefix string `json:"isIgnoreTablePrefix"`
	TableSuffix         string `json:"tableSuffix"`
	ListOrder           int32  `json:"listOrder"`
	Status              string `json:"status"`
	Remark              string `json:"remark"`
	UpdatedBy           string `json:"updatedBy"`
}
